package cn.uce.cc.rest.control;

import cn.uce.base.PubApiObjectConstants;
import cn.uce.base.ccos.OrderPostParamsVo;
import cn.uce.base.ccos.OrderServiceFeeVo;
import cn.uce.base.ccos.OrderVo;
import cn.uce.base.entity.CcosNetDistrict;
import cn.uce.base.vo.CcosNetDistrictVo;
import cn.uce.cc.api.service.biz.ICcosNetDistrictBiz;
import cn.uce.cc.api.service.biz.ICcosOrderBiz;
import cn.uce.cc.srv.utils.CreateOrderCodeUtil;
import cn.uce.utils.StringUtil;
import cn.uce.web.common.base.BaseController;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 查询路由网点方法
 */
@Controller
@RequestMapping(value = "ccos/area")
public class CcosAreaController extends BaseController {

    private Logger log = LoggerFactory.getLogger(CcosAreaController.class);

    @Resource
    private ICcosNetDistrictBiz ccosNetDistrictBiz;


     /**
       * 根据级别查询
       * @Author liupan
       * @Description
       * @Date  2020-07-07 15:50
       */
    @RequestMapping(value = "/getAreaCodeByCondition",method=RequestMethod.POST)
    @ResponseBody
    public List<Map<String,Object>> getAreaCodeByCondition(CcosNetDistrictVo ccosNetDistrictVo){
        List<Map<String,Object>> list = ccosNetDistrictBiz.getAreaCodeByCondition(ccosNetDistrictVo);
        return list;
    }

}
